package org.example.springworkbook.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * program: SpringWorkBook
 * <p>
 * description: 测试
 * <p>
 * author: xiaoxie
 * <p>
 * create: 2024-07-31 20:42
 **/

@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }
    @RequestMapping("/t2")
    public Integer t2() {
        return 2/0;
    }

}
